package com.china08.yxyapi.repository.db;

import java.util.Date;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.china08.yxyapi.entity.db.lessons.YxyLessonsTemp;

public interface YxyLessonsTempRepository extends JpaRepository<YxyLessonsTemp, String> {
    List<YxyLessonsTemp> findByMd5(String md5);

    long countByMd5AndChunk(String md5, Integer chunk);

    List<YxyLessonsTemp> findByMd5AndCreatedDateLessThanEqual(String md5, Date date);
}
